/*
 * @(#)AtnaUdpClient.java
 * Date 2013-11-15
 * Version 1.0
 * Author Jim Horner
 * Copyright (c)2012
 */


package us.hornerscorners.lamppost.atna.client;

import com.nesscomputing.syslog4j.impl.net.udp.UDPNetSyslogConfig;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import us.hornerscorners.lamppost.ihecommon.config.AtnaConfig;
import us.hornerscorners.lamppost.ihecommon.config.AtnaProtocolType;


/**
 * Class description
 *
 *
 * @version        v1.0, 2013-11-15
 * @author         Jim Horner    
 */
public class AtnaUdpClient extends AbstractAtnaClient {

    /** Field description */
    private final Logger logger = LoggerFactory.getLogger(getClass());

    /**
     * Constructs ...
     *
     *
     * @param context
     * @param config
     */
    public AtnaUdpClient(AtnaContext context, AtnaConfig config) {

        super(context, config, AtnaProtocolType.udp);
    }

    /**
     * Method description
     *
     */
    @Override
    public void startup() {

        logger.info("Starting ATNA client pool [{}].", getProtocol());

        UDPNetSyslogConfig sysconfig = new UDPNetSyslogConfig();

        startup(sysconfig);
    }
}
